package net.skyaims.aiolia.chat;

import net.skyaims.aiolia.chat.core.Environment;
import net.skyaims.aiolia.chat.core.Option;
import net.skyaims.aiolia.chat.core.Platform;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class BootStrap {

    private static final Logger log = LoggerFactory.getLogger(BootStrap.class);

    public static <Opt extends Option, Env extends Environment> void launch(
            Platform<Opt, Env> platform) {

        Thread worker = new Thread(platform);
        worker.start();
        log.info("Worker Thread " + worker.getName() + " Start");

    }

}
